<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/10/7
  Time: 15:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>welcome</title>
  </head>
  <body>
  <%request.setCharacterEncoding("UTF-8");
    String username=String.valueOf(request.getParameter("username"));
    String password=String.valueOf(request.getParameter("password"));
  %>
  <jsp:useBean id="user" class="com.javaBean" >
    <jsp:setProperty name="user" property="username" value="<%=username%>"></jsp:setProperty>
  <jsp:setProperty name="user" property="password" value="<%=password%>"></jsp:setProperty>
  </jsp:useBean>
  <div>
    <ul>
      <li>
        用户名：<jsp:getProperty name="user" property="username"/>
      </li>
      <li>
        密码：<jsp:getProperty name="user" property="password"/>
      </li>
    </ul>
  </div>
  </body>
</html>
